define(function(require, exports, module) {
	"require:nomunge,exports:nomunge,module:nomunge";

	var app = require('mokit/app');
	var ProjectListView = require('../views/provider-info');
	var commonUtils = require('../common/utils');
	var model = require('../models/Provider');

	/**
	 * 社友录页面控制器
	 */
	return app.controller.create({
		isSetting: true,
		/**
		 * 默认action
		 */
		index: function(context) {
			var self = this;
			model.getInfo(context.routeData.id, function(){
				self.setView(new ProjectListView({
					model: model
				}));
			});
		},
		
		//推荐
		tuijian: function(context){
			model.tuijian(function(){
				alert("推荐成功");
			});			
		},
		
		//加入团队
		joinTeam: function(context){
			model.joinTeam(function(){
				alert("邀请成功");
			});				
		},
		
		//关注
		attention: function(context){
			model.attention(function(){
				alert("关注成功");
			});				
		},		
		
		
	});

});